<!DOCTYPE html>
<html><head>
    <meta http-equiv="content-type" content="text/html; charset=gbk">
    <meta charset="gb2312">
    <title>{{$title}}</title>
    <link rel="shortcut icon" type="image/ico" href="{{asset('/favicon.ico')}}">
    <link rel="stylesheet" href="{{asset('assets/authorlogin/login.css')}}">
    <style>
        input:-webkit-autofill {
            -webkit-box-shadow: 0 0 0px 1000px white inset;
        }
    </style>
<body>
<div class="wrapper">
    <div class="header clearfix">
        <a  class="logo" target="_blank"></a>
        <span class="logo-tip">Hi!欢迎来到HHAlpaca</span>
    </div>

    <div class="content clearfix">
        <div class="fast-login">
            {{--<div class="title">二维码登录</div>--}}
            <div class="fast-login-btns clearfix" style="margin-top:15px;">
                <a target="_blank"><img src="{{asset('assets/authorlogin/alpaca.png')}}"></a>
            </div>
        </div>

        <div id="unauth_main" class="login-regist">
            <div class="regist-box" style="display: block;">
                <div class="title">输入登录信息</div>
                <div id="registForm" class="formBox">
                    <input name="act" value="register_do" type="hidden">
                    <input name="type" value="1" type="hidden">
                    <div class="itembox user-name">
                        <i style="display: none;" class="right-ico"></i>
                        <div class="item">
                            <i class="ico"></i>
                            <i style="display: none;" class="delete-btn"></i>
                            <label for="J_RegistUser" class="txt-tip">请输入用户名</label>
                            <input id="J_RegistUser" tabindex="1" class="txt tabInput" autocomplete="off" name="username" type="text">
                        </div>
                    </div>

                    <div class="itembox user-pwd">
                        <i style="display: none;" class="right-ico"></i>
                        <div class="item">
                            <i class="ico"></i>
                            <i style="display: none;" class="delete-btn"></i>
                            <label for="J_RegistPsw" class="txt-tip">密码</label>
                            <input tabindex="2" id="J_RegistPsw" class="txt tabInput" name="password" type="password">
                        </div>
                    </div>

                    <div class="itembox pass-verifycode" id="phoneCodeBox">
                        <i class="right-ico"></i>
                        <span class="verifycode-img">
                            <img id="verifyImg" title="验证码图片" alt="验证码图片" class=" pass-verifyCode" src="{{url('admin/verify')}}" height="38" width="113" onclick="this.src='{{url('admin/verify')}}?'+Math.random()">
                        </span>
                        <a href="javascript:;" class="verifycode-changelink" id="phoneResCode" onclick="$('#verifyImg')[0].src='{{url('admin/verify')}}?'+Math.random()">换一张</a>
                        <div class="item">
                            <label for="J_phoneCode" class="txt-tip">验证码</label>
                            <input id="J_phoneCode" tabindex="3" name="verify" class="txt" autocomplete="off" type="text">
                        </div>
                    </div>
                    <input tabindex="4" value="登录" id="J_RegButton" class="pass-btn tabInput" type="submit">
                </div>
            </div>
            <!-- //注册版块邮箱注册end -->
        </div>
    </div>
</div>
<script type="text/javascript" src="{{asset('assets/authorlogin/jquery-1.js')}}"></script>
<script type="text/javascript" src="{{asset('assets/layer/layer.js')}}"></script>
<script>
    $("#J_RegButton").bind('click',function(){
        layer.msg('登录中', {
            icon: 16
            ,shade: 0.01
        });
        $.post('{{url('admin/authorlogin')}}',{
            'password':$("#J_RegistPsw").val(),
            'verify':$("#J_phoneCode").val(),
            'username':$("#J_RegistUser").val(),
            '_token':'{{csrf_token()}}'},function(res){
            layer.closeAll('loading');
            if(res.status==0){
                $("#verifyImg").attr('src', '{{url('admin/verify')}}?'+Math.random());
                layer.msg(res.msg,{icon:5});
            }else if(res.status==1){
                location.href="{{url('admin/index')}}"
            }
        });
    });
</script>
</body>
</html>